<!--#
	var article = platform.findArticleById(numberUtil.toLong(parameter.id));
	article = platform.addArticleHot(article.id);
	var catalog = platform.findCatalogById(article.catalogId);
-->
<!--#layout("common/page.html",{"jsBase":"/js/","title":util.getCatalogName(catalog) + ' ' + util.getArticleTitle(article),"article":article}){  -->
<div class="doc-container" id="doc-container">
	<div class="page-banner">
		<!--#
               var image = util.getCatalogImage(catalog);
               var style = '';
               if (image != null) {
                   style = 'background-image:url(/core/file/inline/' + image.id + '/' + image.name +')';
               } else {
				   style = 'background-image:url(' + tpl + '/image/banner.jpg)';
               }
            -->
		<div class="page-banner-img-wrapper" style="${style}">
			<div class="banner-title">${util.getCatalogName(catalog)}</div>
		</div>
	</div>
	<div class="container-fixed">
		<div class="margin-top">
			<span class="layui-breadcrumb">
			  <a href="/">${util.getLocalValue("site.home")}</a>
			  <a href="${(catalog.code == null || catalog.code == '') ? (catalog.accessUrl+'?id='+catalog.id) : catalog.code}">${util.getCatalogName(catalog)}</a>
			</span>
			<hr />
		</div>
		<div class="inner">
			<article class="article-list">
				<input type="hidden" value="@Model.BlogTypeID" id="blogtypeid" />
				<section class="article-item">
					<aside class="title" style="line-height:1.5;text-align:center">
						<h1>${util.getArticleTitle(article)}</h1>
					</aside>
					<div class="public-time">发布时间：${article.showTime,dateFormat="yyyy年MM月dd日"}</div>
					<div class="content artiledetail" style="border-bottom: 1px solid #e1e2e0; padding-bottom: 20px;clear:both">
						${util.getArticleContent(article)}
					</div>
					<div class="margin-top-big">
						<div class="copyright ">
							<p class="f-toe fc-black padding-top">
								非特殊说明，本文版权归${util.html2txt(core.config("网站名称").content!)}所有，转载请注明出处。
							</p>
							<p class="f-toe padding-top">
								本文标题：
								<a href="${request.requestURL}?${request.queryString}" class="r-title">${article.title}</a>
							</p>
							<p class="f-toe padding-top">
								本文网址：
								<a href="${request.requestURL}?${request.queryString}">${request.requestURL}?${request.queryString}</a>
							</p>
						</div>
						<div class="layui-hide">
							<div id="aplayer" style="margin:5px 0"></div>
							<h6>延伸阅读</h6>
							<ol class="b-relation"></ol>
						</div>
					</div>
					<div class="layui-hide bdsharebuttonbox share" data-tag="share_1">
						<ul>
							<li class="f-praise"><span><a class="s-praise"></a></span></li>
							<li class="f-weinxi"><a class="s-weinxi" data-cmd="weixin"></a></li>
							<li class="f-sina"><a class="s-sina" data-cmd="tsina"></a></li>
							<li class="f-qq" href="#"><i class="fa fa-qq"></i></li>
							<li class="f-qzone"><a class="s-qzone" data-cmd="qzone"></a></li>
						</ul>
					</div>
					<div class="footer padding-top">
						<!--# for(tagValue in util.split(article.tagValue,",")) { -->
						<div class="f-fl tags">
							<span class="fa fa-tags fs-16"></span>
							<a class="tag" href="${catalog.accessUrl + '?tag=' + tagValue}">${platform.findDict("article_tag",tagValue).name}</a>
						</div>
						<!--# } -->
					</div>
					<div class="f-cb"></div>
					<!--# if (false) { -->
					<fieldset class="layui-elem-field layui-field-title">
						<script src="${ctxPath}${tpl}/js/comment.js"></script>
						<legend>发表评论</legend>
						<div class="layui-field-box">
							<div class="leavemessage" style="text-align:initial">
								<form class="layui-form blog-editor" lay-filter="submitComment" onsubmit="return false">
									<input type="hidden" name="articleId" id="articleid" lay-filter="submitComment" value="${article.id}">
									<div class="layui-form-item">
										<textarea name="content" lay-filter="submitComment" lay-verify="required" placeholder="请填写评论内容" class="layui-textarea kindEditor"></textarea>
									</div>
									<div class="layui-form-item">
										<button class="layui-btn" lay-submit lay-filter="submitComment">提交评论</button>
									</div>
								</form>
							</div>
						</div>
					</fieldset>
					<ul id="commentListView" article_id="${article.id}" limit="5" class="message-list">
					</ul>
					<div id="page" class="align-center"></div>
					<!--# } -->
				</section>
			</article>
		</div>
	</div>
</div>

<link rel="stylesheet" href="${ctxPath}${tpl}/css/message.css" />
<!--#}  -->